package org.jsets.fastboot.persistent.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.jsets.fastboot.persistent.enums.Algorithm;

@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FieldEncrypt {
	Algorithm algorithm(); 
	boolean lazy() default false;// 惰性的
	boolean encryptOnStore() default true;// 存储时加密
	boolean decryptOnQuery() default false;// 查询时解密
	boolean encryptOnQuery() default false;// 查询时加密
}